<template>
	<scroll-view scroll-y="true" class="love-car-all">
		<view class="top">
			<image src="https://z3.ax1x.com/2021/04/12/cDALMd.png" @click="back"></image>
			<view class="top-title">
				我的车库
			</view>
			<navigator class="managerCarType" url="../managerCarType/managerCarType" hover-class="none">
				管理车型
			</navigator>
		</view>
		<view class="bottom">
			<view class="bottom-content">
				<view class="bottom-content-1">
					<view class="car-img">
						<image :src="loveCar.mycarImage" ></image>
					</view>
					<view class="car-info">
						<view class="car-name">
							<text>{{loveCar.mycarBrand}}</text>
							<view class="car-default">
								<text>默认</text>
							</view>
						</view>
						<view class="car-type">
							<text>{{loveCar.mycarProductionDate}}</text>
							<text>1.8L</text>
							<text>手动</text>
						</view>
					</view>
					<view class="shiming">
						<text>认证有礼</text>
					</view>
				</view>
				<view class="bottom-content-2">
					<view class="bottom-2-title">
						<text>车辆状态</text>
						<navigator hover-class="none" url="../examine/examine" open-type="navigate">
							<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
						</navigator>
					</view>
					<view class="bottom-2-next">
						<view class="next-item">
							<view class="baoyang">
								下次保养时间
							</view>
							<text>2021-06-01</text>
						</view>
						<view class="next-item">
							<view class="baoyang">
								下次保养里程
							</view>
							<text>10000km</text>
						</view>
						<view class="score">
							<text>优秀</text>
							<text>82分</text>
						</view>
					</view>
					<view class="bottom-2-xiangmu">
						<text class="xiangmu-title">保养项目</text>
						<view class="xiangmu-item">
							<text>小保养项目</text>
							<text>发动机内部养护</text>
							<text>燃油系统养护</text>
							<text>发动机舱清洗</text>
							等9项
						</view>
					</view>
					<view class="bottom-2-btn">
						<image class="click" src="https://z3.ax1x.com/2021/04/12/cBWBAe.png" mode=""></image>
						<text>开启保养提醒</text>
						<image class="jiantou" src="https://z3.ax1x.com/2021/04/12/cBWDtH.png" mode=""></image>
					</view>
				</view>
				<view class="bottom-content-3"></view>
				<view class="bottom-content-4">
					<view class="bottom-4-title">
						<text>基本信息</text>
						<text>为您精确匹配保养服务和配件</text>
					</view>
					<view class="bottom-4-baoyangxiangmu">
						<view class="baoyangxiangmu-item-top">
							<view class="item-top-title">
								<view class="biaoti">以下项目需要保养</view>
								<image src="https://z3.ax1x.com/2021/04/12/cBjJ9x.png"></image>
							</view>
							<view class="item-top">
								<view class="item" v-for="item in baoyangItem" :key="item.id">
									<image :src="item.itemImg" mode=""></image>
									<view>
										{{item.text}}
									</view>
								</view>
							</view>
							<view class="bottom-4-btn">
								<text>小保养357元起,立即保养</text>
							</view>
						</view>
						<view class="baoyangxiangmu-item-bottom">
							<view class="item-bottom-info">
								<view class="info-all">
									<view class="info-all-item">
										<view class="info-all-item-1">
											<text>发动机排量</text>
											<image src="https://z3.ax1x.com/2021/04/12/cDptmT.png" mode=""></image>
										</view>
										<text>1.8L</text>
									</view>
									<view class="info-all-item">
										<view class="info-all-item-1">
											<text>生产年份</text>
											<image src="https://z3.ax1x.com/2021/04/12/cDptmT.png" mode=""></image>
										</view>
										<text>2006</text>
									</view>
								</view>
								<view class="item-bottom-type">
									<text>款型</text>
									<view>
										2006款 1.8L 手动
									</view>
								</view>
							</view>
							<view class="item-bottom-info">
								<view class="info-all">
									<view class="info-all-item">
										<view class="info-all-item-1">
											<text>行驶里程</text>
										</view>
										<text>100km</text>
									</view>
									<view class="info-all-item">
										<view class="info-all-item-1">
											<text>上路时间</text>
										</view>
									</view>
								</view>
								<view class="item-bottom-type" style="border: none;">
									<text>注册时间</text>
									<image src="https://z3.ax1x.com/2021/04/12/cDptmT.png" mode=""></image>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view class="bottom-content-5"></view>
				<view class="bottom-content-6">
					<view class="bottom-6-title">
						<text>违章信息</text>
						<view class="zheng">
							<image src="https://z3.ax1x.com/2021/04/12/cDefSO.png" mode=""></image>
							<text>扫行驶证自动填写</text>
						</view>
					</view>
					<view class="bottom-6-otherinfo">
						<view class="otherinfo-1">
							<view class="car-number">
								<view class="number">
									<text>川</text>
									<image src="https://z3.ax1x.com/2021/04/12/cDmI3T.png" mode=""></image>
									<text>车牌号</text>
								</view>
								<view class="findCity">
									<text>查询城市</text>
								</view>
							</view>
						</view>
						<view class="otherinfo-2">
							<text>车辆识别代号(vin)</text>
							<image src="https://z3.ax1x.com/2021/04/12/cDptmT.png"></image>
						</view>
						<view class="otherinfo-2">
							<text>发动机号码</text>
							<image src="https://z3.ax1x.com/2021/04/12/cDptmT.png"></image>
						</view>
					</view>
				</view>
				<view class="bottom-content-7">
					<view class="bottom-7-title">
						车险信息
					</view>
					<view class="bottom-7-input">
						<view class="input-item">
							<view>
								商业保险公司
							</view>
							<view>
								保险到期日
							</view>
							
						</view>
						<view class="input-item">
							<view>
								车主姓名
							</view>
							<view>
								身份证号
							</view>
						</view>
						<view class="input-item">
							<view>
								投保城市
							</view>
							<view>
								一年内是否过户
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	import {createNamespacedHelpers} from "vuex"
	let {mapState}=createNamespacedHelpers("mine")
	export default {
		data() {
			return {
				baoyangItem:[
					{id:0,text:"小保养",itemImg:"https://z3.ax1x.com/2021/04/12/cBqo6g.png"},
					{id:1,text:"发动机舱清洗",itemImg:"https://z3.ax1x.com/2021/04/12/cBqTXQ.png"},
					{id:2,text:"空调管路杀菌",itemImg:"https://z3.ax1x.com/2021/04/12/cBqI1S.png"},
					{id:3,text:"蒸发箱清洗",itemImg:"https://z3.ax1x.com/2021/04/12/cBq5p8.png"}
				],
				loveCar:{}
			};
		},
		onLoad() {
			// console.log('carType',this.carInfo)
			let loveCarInfo=JSON.parse(uni.getStorageSync('loveCar')) 
			this.loveCar=loveCarInfo
			// console.log(11,loveCarInfo)
		},
		computed:{
			...mapState(["carInfo"])
		},
		methods:{
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
 .love-car-all{
	 background-color: #f0f0f0;
	.top{
	 	width: 100vw;
	 	height: 300rpx;
	 	box-sizing: border-box;
	 	background-image: linear-gradient(to right,#FF7C16,#FF5401);
	 	display: flex;
		justify-content: space-between;
	 	align-items: center;
	 	padding-top: 30rpx;
	 	box-sizing: border-box;
	 	image{
	 		width: 64rpx;
	 		height: 64rpx;
	 	}
	 	.top-title{
	 		margin-left: 60rpx;
	 		color: white;
	 		font-size: 36rpx;
	 		font-weight: bold;
	 	}
		.managerCarType{
			font-size: 30rpx;
			color: white;
			margin-right: 20rpx;
		}
	}
	.bottom{
		 width: 100vw;
		 height: 100vh;
		 position: relative;
		.bottom-content{
			 width: 92%;
			 position: absolute;
			 top: -80rpx;
			 bottom: 0rpx;
			 left: 30rpx;
			 right: 0rpx;
			.bottom-content-1{
				 width: 100%;
				 height: 200rpx;
				 background-color: white;
				 border-radius: 30rpx;
				 display: flex;
				 justify-content: space-between;
				 box-shadow: 0rpx 8rpx 8rpx #cfcfcf;
				 .car-img{
					 align-self: center;
					 margin-left:20rpx;
					 image{
						 width: 140rpx;
						 height: 140rpx;
					 }
				 }
				 .car-info{
					 align-self: center;
					 .car-name{
						 display: flex;
						.car-default{
							width: 60rpx;
							height: 40rpx;
							color:#FF1515 ;
							background-color:#FFE5E5 ;
							border-radius: 10rpx;
							line-height: 40rpx;
							text-align: center;
							font-size: 24rpx;
							margin-left: 10rpx;
						}
					 }
					 .car-type{
						 font-size: 24rpx;
						 color: gray;
						 margin-top: 10rpx;
						 text{
							 margin-left: 4rpx;
						 }
					 }
				 }
				 .shiming{
					 width: 140rpx;
					 height: 70rpx;
					 background: url("https://z3.ax1x.com/2021/04/12/cBMjuF.png") no-repeat center;
					 background-size: contain;
					 color: #FFF2D8;
					 font-size: 24rpx;
					 padding-left: 10rpx;
					 box-sizing: border-box;
					 line-height: 70rpx;
					 margin-right: 20rpx;
					 margin-top: 10rpx;
				 }
			}
			.bottom-content-2{
				width: 100%;
				border-radius: 30rpx;
				background-color: white;
				margin-top: 30rpx;
				padding: 20rpx;
				box-sizing: border-box;
				.bottom-2-title{
					display: flex;
					height: 80rpx;
					align-items: center;
					justify-content: space-between;
					image{
						width: 18rpx;
						height: 25rpx;
					}
					text{
						font-weight: bold;
						color: #333333;
					}
				}
				.bottom-2-next{
					display: flex;
					justify-content: space-between;
					border-bottom: 1px solid #f9f9f9;
					box-sizing: border-box;
					padding-bottom: 20rpx;
					.next-item{
						width: 32%;
						height: 80rpx;
						border-right:1px solid #f9f9f9;
						&:nth-of-type(2){
							border: none;
							padding-left: 30rpx;
						}
						.baoyang{
							color: #7C7C7C;
							font-size:28rpx;
							margin-bottom: 10rpx;
						}
						text{
							color: #575757;
							font-size:28rpx;
						}
					}
					.score{
						width: 250rpx;
						height: 60rpx;
						background-image: linear-gradient(to right,#8ED4FF 0%,#8ED4FF 50%,#EEEEEE 51%,#EEEEEE 100%);
						border-radius: 50rpx;
						display: flex;
						justify-content:space-around;
						align-items: center;
						text{
							font-weight: bold;
							&:nth-of-type(1){
								color:#0065E8;
							}
						}
					}
				 }
				.bottom-2-xiangmu{
					font-size:28rpx;
					margin-top: 20rpx;
					.xiangmu-title{
						color:#7C7C7C;
					}
					.xiangmu-item{	
						margin-top: 20rpx;
						text{
							margin-right: 20rpx;
							line-height: 1.6;
						}
					}
				}
				.bottom-2-btn{
					width: 400rpx;
					height: 70rpx;
					background-color:#FF5401 ;
					border-radius: 30rpx;
					color:white ;
					display: flex;
					align-items: center;
					justify-content: center;
					margin: 20rpx auto;
					.click{
						width: 40rpx;
						height: 40rpx;
						margin-right: 20rpx;
					}
					.jiantou{
						width: 18rpx;
						height: 25rpx;
						margin-left: 20rpx;
					}
				}
			}
			.bottom-content-3{
				width: 100%;
				height: 150rpx;
				margin-top: 30rpx;
				border-radius:30rpx;
				background: url("https://z3.ax1x.com/2021/04/12/cB4I4e.png") no-repeat;
				background-size: cover;
			}
			.bottom-content-4{
				width: 100%;
				border-radius: 40rpx;
				margin-top: 30rpx;
				.bottom-4-title{
					text{
						&:nth-of-type(1){
							font-size: 36rpx;
						}
						&:nth-of-type(2){
							font-size: 28rpx;
							color: gray;
							margin-left: 20rpx;
						}
					}
				}
				.bottom-4-baoyangxiangmu{
					width: 100%;
					margin-top: 30rpx;
					.baoyangxiangmu-item-top{
						padding-bottom: 30rpx;
						box-sizing: border-box;
						background-color: #FFF5DB;
						border-radius: 30rpx 30rpx 0rpx 0rpx;
						.item-top-title{
							color: #FF8E2D;
							width: 100%;
							display: flex;
							align-items: center;
							justify-content: space-;
							padding-top: 20rpx;
							box-sizing: border-box;
							
							.biaoti{
								width: 70%;
								text-align: right;
							}
							image{
								width: 32rpx;
								height: 32rpx;
								padding-left: 140rpx;
								vertical-align: middle;
							}
						}
						.item-top{
							display: flex;
							margin-top: 30rpx;
							.item{
								width: 25%;
								font-size: 24rpx;
								color: gray;
								text-align: center;
								image{
									width: 80rpx;
									height: 80rpx;
								}
							}
							
						}
						.bottom-4-btn{
							width: 400rpx;
							height: 70rpx;
							background-color:#FF5401 ;
							border-radius: 30rpx;
							color:white ;
							display: flex;
							align-items: center;
							justify-content: center;
							margin: 20rpx auto 0rpx;
						}
					}
					.baoyangxiangmu-item-bottom{
						width: 100%;
						background-color: white;
						border-radius:0rpx 0rpx 30rpx 30rpx;
						// padding-top: 10rpx;
						.item-bottom-info{
							line-height: 1.6;
							.info-all{
								display: flex;
								border-bottom: 1px solid #f9f9f9;
								.info-all-item{
									border-right: 1px solid #f9f9f9;
									width: 100%;
									height: 120rpx;
									padding-left: 30rpx;
									box-sizing: border-box;
									padding: 10rpx;
									&:nth-of-type(2){
										border: none;
									}
									.info-all-item-1{
										font-size: 30rpx;
										color: gray;
										image{
											width: 20rpx;
											height: 20rpx;
											vertical-align: top;
											margin-left: 10rpx;
										}
									}
								}
							}
							.item-bottom-type{
								width: 100%;
								height: 120rpx;
								border-bottom: 1px solid #f9f9f9;
								padding-left: 10rpx;
								box-sizing: border-box;
								// padding-top: 10rpx;
								text{
									font-size: 30rpx;
									color: gray;
								}
								image{
									width: 20rpx;
									height: 20rpx;
									vertical-align: top;
									margin-left: 10rpx;
								}
							}
						}
					}
				}
				
			}
			.bottom-content-5{
				width: 100%;
				height: 150rpx;
				margin-top: 30rpx;
				border-radius:30rpx;
				background: url("https://z3.ax1x.com/2021/04/12/cBIWFO.png") 0rpx -10rpx no-repeat;
				background-size: cover;
			}
			.bottom-content-6{			
				margin-top: 30rpx;
				.bottom-6-title{
					margin-bottom: 30rpx;
					display: flex;
					justify-content: space-between;
					text{
						font-size: 36rpx;
					}
					.zheng{
						image{
							width: 30rpx;
							height: 30rpx;
							vertical-align: middle;
							margin-right: 10rpx;
						}
						text{
							font-size: 30rpx;
							color:#A1A1A1;
						}
					}
				}
				.bottom-6-otherinfo{
					width: 100%;
					background-color: white;
					border-radius: 30rpx;
					box-sizing: border-box;
					padding: 10rpx;
					.otherinfo-1{
						width: 100%;
						height: 100rpx;
						border-bottom: 1px solid #f9f9f9;
						line-height: 100rpx;
						.car-number{
							display: flex;
							height: 100%;
							.number{
								width: 50%;
								border-right: 1px solid #f9f9f9;
								image{
									width: 20rpx;
									height: 15rpx;
									margin-left: 10rpx;
								}
								text{
									margin-left: 30rpx;
									font-size: 36rpx;
									&:nth-of-type(2){
										color: gray;
										font-size: 30rpx;
										padding-left: 30rpx;
									}
								}
							}
							.findCity{
								height: 100%;
								width: 50%;
								padding-left:30rpx ;
								color: gray;
								font-size: 30rpx;
							}
						}
					}
					.otherinfo-2{
						width: 100%;
						height: 100rpx;
						color: gray;
						font-size: 28rpx;
						line-height: 100rpx;
						border-top: 1px solid #f9f9f9;
						overflow: hidden;
						&:nth-of-type(2){
							border: none;
						}
						image{
							width: 20rpx;
							height: 20rpx;
							vertical-align: top;
							margin-left: 20rpx;
							margin-top: 20rpx;
						}
					}
				}
			}
			.bottom-content-7{
				margin-top: 30rpx;
				margin-bottom: 30rpx;
				.bottom-7-title{
					margin-bottom: 30rpx;
					font-size: 36rpx;
				}
				.bottom-7-input{
					background-color: white;
					width: 100%;
					border-radius:30rpx;
					.input-item{
						width: 100%;
						height: 120rpx;
						line-height: 120rpx;
						color: gray;
						padding-left: 30rpx;
						box-sizing: border-box;
						display: flex;
						border-bottom: 2rpx solid #f9f9f9;
						&:nth-of-type(3){
							border: none;
						}
						view{
							width: 50%;
							border-right: 2rpx solid #f9f9f9;
							&:nth-of-type(2){
								border: none;
								padding-left: 30rpx;
							}
							&:nth-of-type(4){
								border: none;
								padding-left: 30rpx;
							}
							&:nth-of-type(6){
								border: none;
								padding-left: 30rpx;
							}
						}
					}
				}
			}
		}
	}
 }
</style>
